import axios from 'axios'
import { request } from '@/utils/request'
import { request_t,instance} from '@/utils/request2';
//个人中心 项目列表
export function GetProjectList(data) {
    const url ='/api/user/project/PageList';
    let res=request_t(url, 'get', data)
    return res
};
//项目候选人列表
export function Candidate(id, status) {
    const url = '/api/user/project/Candidate';
    const data = {
        id:id,
        status: status,
        callback: 'callback'
    };
    let res=request_t(url, 'get', data)
    return res
};

//候选者 确认合作 
export function ConfirmCooperation(uid,pid,status) {
    const url ='/api/user/project/ConfirmCooperation';
    const data = {
        uid:uid,
        pid:pid,
        status: status,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};

//项目参与操作
export function ProjectSignIn(uid, id,info) {
    const url ='/api/user/project/projectSignIn';
    const data = {
        cid: id,
        info:info,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//项目退出参与
export function ProjectSignOut(uid, cid) {
    const url ='/api/user/project/projectSignOut';
    const data = {
        cid: cid,
        callback: 'callback'
    };
    let res=request_t(url, 'post', data)
    return res
};
//项目删除
export function Delete(id) {
    const url = '/api/user/project/delete';
    const data = {
        id:id,
    };
    let res=request_t(url, 'post', data)
    return res
};

//邀请人做项目
export function DoProjecet(cid,loginId,proId) {
    const url ='/api/wap/m/DoProjecet';
    const data = {
        uid:cid,
        loginid:loginId,
        proId:proId
    };
    let res=request_t(url, 'post', data)
    return res
};
//获取邀请的项目

export function GetCanInvitPro(id) {
    const url ='/api/wap/m/GetCanInvitPro';
    const data = {
        id:id,
    };
    let res=request_t(url, 'get', data)
    return res
};
//